@import './custom.less';

@content0: content0;
.rowFlex{
  display: flex;
  flex-direction: row;
  justify-content: center;
}

:global{
.@{content0} {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  &-wrapper{
    //height: 60vh;
    height: auto;
  }

  &-text {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 10vh;
    position: relative;
    top: 0;
    bottom: 0;
    margin: auto;
    opacity: 1;
    right: 0;
    & p, & h1 {
      position: relative !important;
      width: 100%;
      .rowFlex;
    }
    & h1 {
      font-size: 32px;
      font-weight: normal;
      color: #404040;
    }
    & p {
      margin-top: 10px;
    }
    //& moreText {
    //     display: flex;
    //     background: red;
    //     //align-self: flex-end;
    //     //font-size: 16px;
    //   }
  }

  &-grid {
      position: relative !important;
      width: 100%;
      //height: 60vh;
      height: auto;
      display: flex;
      flex-direction: row;
      justify-content: center;
    &-child{
      border-radius: 3px;
      border: solid 1px #ebebeb;
      padding: 10px;
      &:hover{
        box-shadow: 0 0 5px #999;
        transition: box-shadow .3s;
        cursor: pointer;
      }
    }
  }
}

  /* 图片 */
  .content0-image-wrapper {
    position: relative;
    list-style: none;
    width: 100%;
    height: auto;
    padding:10px 40px 0px 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .content0-image-wrapper li {
    padding: 10px;
    width: 25%;
    height: auto;
  }

  @media screen and (max-width: 414px) {
    .content0{
      transform: scale(.65) translateX(12px);
      transform-origin: left center;
    }
  }
  @media screen and (max-width: 375px) {
    .content0{
      transform: scale(.6) translateX(7px);
    }
  }
  @media screen and (max-width: 320px) {
    .content0{
      transform: scale(.5) translateX(12px);
    }
  }



@media screen and (max-width: 767px) {
  .@{content0}-wrapper {
    height: 400px;
    .@{content0} {
      overflow: hidden;
      width: 90%;
      margin: auto;
      &-img, &-text {
        width: 100%;
        display: block;
        position: relative;
        text-align: center;
      }
      &-img {
        height: 200px;
        margin: 20px auto;
        span {
          right: 0;
          left: 0;
          margin: auto;
          width: 180px;
          height: 200px;
          line-height: 200px;
        }
      }
      &-text {
        height: 140px;
        margin-bottom: 20px;
        p, h1 {
          width: 100%;
          top: auto;
        }
        h1{
          margin: 10px auto;
          font-size: 24px;
        }
      }
    }
  }
}}
